package andmplayer.lyric;

import java.io.File;

public class LyricResolver
{
	private static boolean hasInit = false;
	/**
	 * Init lyric resource from : mp3 file, lrc file or network
	 * @param name
	 */
	public static void initLyric(File mediaFile) {
		hasInit = true;
	}

	/**
	 * @param time : mmssms
	 * @return current lyric string
	 * @throws IllegalAccessException 
	 */
	public static String getLyric(int time) throws IllegalAccessException {
		if (hasInit == false) {
			throw new IllegalAccessException("Lyric resource has not initialized, please invoke initLyric first!");
		}
		return null;
	}
}
